package com.spdb.spdbfl.restful.project;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.spdb.spdbfl.utils.HttpRequest;
import com.spdb.spdbfl.utils.Login;
import org.testng.annotations.Test;


@Test(description = "项目立项")
public class ProjectInitiationIT {

    public static final String url = "http://10.116.2.244:5555/process/requisitionProject/list";


    @Test(description = "立项申请-正常查询")
    public static void List01(){
        Login login = new Login();
        String token = login.getToken("lium", "1");
        HttpRequest httpRequest = new HttpRequest();
        String param = createParam();
        httpRequest.httpPost(url, token, param);
    }


    public static String createParam(){
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("page", 1);
        jsonObject.put("rows", 10);
        JSONArray jsonarray = new JSONArray();
        jsonObject.put("conditions", jsonarray);
        return jsonObject.toJSONString();
    }
}
